<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style>
table {
	border-collapse:collapse;
}
table, td, th {
	border:1px solid black;
	text-align: center;
	height: 50px;
	min-width: 100px;
}
th {
	background-color:green;
	color:white;
}
a:visted {
	color: blue;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Product</title>
</head>
<body>
<table>
<tr>
	<th>Id</th>
	<th>Name</th>
	<th>Price</th>
	<th>Description</th>
	<th>Create date</th>
	<th>Update date</th>
	<th></th>
</tr>
<s:iterator value="productList" status="status">
	<tr>
		<td>
			<s:property value="productId"/>
		</td>
		<td>
			<a href="productAdd.html?id=<s:property value='productId' />"><s:property value="productName"/></a>
		</td>
		<td>
			<s:property value="productPrice"/>
		</td>
		<td>
			<s:property value="productDescription"/>
		</td>
		<td>
			<s:property value="createdAt"/>
		</td>
		<td>
			<s:property value="updatedAt"/>
		</td>
		<td>
			<a href="deleteProduct.html?id=<s:property value="productId"/>">Delete</a>
		</td>
	</tr>
</s:iterator>
</table>
</body>
</html>